home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
util
/
sys
/
DVC.lha
/
DVC
/
Scripts
/
MakeLibList
< prev
Wrap
Text File
|
1997-07-24
|
1KB
|
41 lines
;$VER: MakeLibList 1.1 (24.7.1997) #DOS © Msi Software
; Example DOS Script for creating a Library list with (and for) DVC.
;
;********************************************************************
; I had all these GREAT ideas "buzzing" in my head,
; and by accident I hit the snooze button!
; Roger Hågensen...
;
FAILAT 10
ECHO "MakeLibList 1.1 © Msi Software 1997"
; Add ID to DVC list! (The single > create a file, >> appends to a file!)
ECHO >LibList.dvc "DVC1 (Don't change this line!)"
; Add $VER: line, you may edit this one later!
ECHO >>LibList.dvc ";$VER: LibList.dvc 1.0 (24.7.1997) #DVC MakeLibList 1.1*N"
; Here the magic (and the mess) begin!
ECHO >T:script.tmp "FAILAT 10"
ECHO >>T:script.tmp "ECHO >T:unsorted.tmp *"*" NOLINE"
ECHO >>T:script.tmp "RESIDENT C:DVC FORCE"
;This line let C:List do the dirty work on listing the LIBS: drawer,
;and also creating the script part that generate the unsorted list.
ECHO "Getting filenames..."
LIST LIBS: FILES ALL LFORMAT="DVC *"%p%n*" INFO >>T:unsorted.tmp" >>T:script.tmp
ECHO >>T:script.tmp "RESIDENT C:DVC REMOVE"
ECHO "Getting fileversions..."
EXECUTE T:script.tmp
DELETE T:script.tmp QUIET
ECHO "Sorting filenames..."
SORT T:unsorted.tmp T:sorted.tmp
DELETE T:unsorted.tmp QUIET
TYPE T:sorted.tmp >>LibList.dvc
DELETE T:sorted.tmp QUIET
ECHO "Finished!"